#include <cstdlib>
#include <ctime>
using std::rand;

class randsome_number {
public:
    randsome_number (int na, int nb)
    :a(na), b(nb)
    {
    }

    int operator() () const
    {
        int tmp = rand () % 2;
        if (tmp)
            tmp = rand () % (b - a) + a;
        return tmp;
    }

private:
    int a, b;
};
